﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true" CodeFile="WIN17_2E.aspx.cs" Inherits="IFRS_WIN17_2E" %>

<%@ Register Assembly="vsm.CustomControl" Namespace="vsm.CustomControl" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        window.SetValueMarketCode = function (Value1, Value2) {
            document.getElementById("<%= hidMARKET_CODE.ClientID %>").value = Value1;
            document.getElementById("<%= txtMARKET_CODE.ClientID %>").value = Value1;
        }

        window.SetValueRefInterest = function (Value1, Value2) {
            document.getElementById("<%= hidREFERENCE_INTEREST_CD.ClientID %>").value = Value1;
            document.getElementById("<%= txtREFERENCE_INTEREST_CD.ClientID %>").value = Value2;
        }

        function Is_FixedRate(flag) {
            if (flag == 1) {
                document.getElementById("<%= txtREFERENCE_INTEREST_CD.ClientID %>").value = '';
                document.getElementById("<%= txtRATIO_ADJUSTMENT.ClientID %>").value = '';
            }
            else {
                document.getElementById("<%= txtFIXED_RATE.ClientID %>").value = '';
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <fieldset class="fsStandard" style="padding-bottom: 5px;">
                <div class="table_detail">
                    <asp:PlaceHolder ID="form_control" runat="server">
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblTRANSACTION_DATE" runat="server" Text="<%$Resources:ifrsField,DATE_TRANSACTION%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtTRANSACTION_DATE" runat="server" SkinID="TextBoxWithNoColor" CssClass="datepicker"></asp:TextBox>
                            <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqTRANSACTION_DATE" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblMARKET_CODE" runat="server" Text="<%$Resources:ifrsField,NO_ACCOUNT%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <cc1:TextboxAutoComplete ID="txtMARKET_CODE" runat="server" SkinID="TextBoxWithNoColor"></cc1:TextboxAutoComplete>
                            <asp:Button ID="btnMARKET_CODE" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,POPUP%>"
                                CausesValidation="False" />
                            <asp:HiddenField ID="hidMARKET_CODE" runat="server" />
                            <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqMARKET_CODE" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblIS_FIXEDRATE" runat="server" Text="<%$Resources:ifrsField,ISFIXED_RATE%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:RadioButton ID="rbtIS_FIXEDRATE_FIX" runat="server" Text="<%$Resources:ifrsField,FIXED_RATE%>" 
                                GroupName="IS_FIXEDRATE" AutoPostBack="true" 
                                oncheckedchanged="rbtIS_FIXEDRATE_FIX_CheckedChanged" />&nbsp;
                            <cc1:TextboxNumber ID="txtFIXED_RATE" runat="server" SkinID="SS_TextBoxWithNoColor" TypeTextbox="Currency" 
                                AllowMaximumNumber="999999999" AllowNegativeNumber="True" DigitDecimal="2" DefaultZero="false" />
                            <asp:RequiredFieldValidator ID="reqFIXED_RATE" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                        </div>
                        <div class="colinfo_single">
                            <asp:RadioButton ID="rbtIS_FIXEDRATE_REF" runat="server" Text="<%$Resources:ifrsField,ABOVE_REFERENCEINTERESTCD%>" 
                                GroupName="IS_FIXEDRATE" AutoPostBack="true" 
                                oncheckedchanged="rbtIS_FIXEDRATE_REF_CheckedChanged" />&nbsp;
                            <cc1:TextboxAutoComplete ID="txtREFERENCE_INTEREST_CD" runat="server" SkinID="S_TextBoxWithNoColor"></cc1:TextboxAutoComplete>
                            <asp:Button ID="btnREFERENCE_INTEREST_CD" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,POPUP%>"
                                CausesValidation="False" />&nbsp;
                            <asp:HiddenField ID="hidREFERENCE_INTEREST_CD" runat="server" />
                            <asp:Label ID="lblRATIO_ADJUSTMENT" runat="server" Text="<%$Resources:ifrsField,RATIOADJUSTMENT%>" />:
                            <cc1:TextboxNumber ID="txtRATIO_ADJUSTMENT" runat="server" SkinID="SS_TextBoxWithNoColor" TypeTextbox="Currency" 
                                AllowMaximumNumber="999999999" AllowNegativeNumber="True" DigitDecimal="2" DefaultZero="false" />
                            <asp:RequiredFieldValidator ID="reqREFERENCE_INTEREST_CD" runat="server"></asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator ID="reqRATIO_ADJUSTMENT" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    </asp:PlaceHolder>
                </div>
                <div class="colbtn">
                    <asp:Button ID="btnSAVE" runat="server" Text="<%$Resources:ifrsButton,SAVE%>" onclick="btnSAVE_Click" />&nbsp;
                    <asp:Button ID="btnCANCEL" runat="server" CausesValidation="false"
                        Text="<%$Resources:ifrsButton,CANCEL%>" onclick="btnCANCEL_Click"  />
                    &nbsp;
                </div>
            </fieldset>
        </div>
    </div>
    <asp:HiddenField ID="hidAboveBelowMktRateID" runat="server" />
    <script src="../Content/js/Currency.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>

